const instanceKey = 'dashboard_instance'

export function getInstance() {
  return sessionStorage.getItem(instanceKey)
}

export function setInstance(instance) {
  sessionStorage.setItem(instanceKey, instance)
  // console.log('setInstance====================================')
  // console.log(sessionStorage.getItem(instanceKey))
  // console.log('====================================')
}

export function clearInstance() {
  // console.log('clearInstance====================================')
  sessionStorage.removeItem(instanceKey)
}
